//
//  UIViewController2.m
//  popaAnimation
//
//  Created by wanglei on 16/12/28.
//  Copyright © 2016年 wanglei. All rights reserved.
//

#import "UIViewController2.h"

@interface UIViewController2 ()

@end

@implementation UIViewController2

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
     self.navigationItem.prompt = @"小解";
    self.navigationItem.title = @"我是二号";
    UIBarButtonItem *itemOne = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(pushToBack)];
    self.navigationItem.leftBarButtonItem = itemOne;
    
   }

- (void)pushToBack{
    [self.navigationController popViewControllerAnimated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
